package org.cyb.demo.service.impl;

import org.cyb.demo.dao.MajorMapper;
import org.cyb.demo.domain.Major;
import org.cyb.demo.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("majorService")
public class MajorServiceImpl implements MajorService {
    @Autowired
    private MajorMapper majorMapper;

    @Override
    public int returnIdByName(Major major) {
        return majorMapper.returnIdByName(major);
    }
}
